/*
 * Stopwords.h
 *
 *  Created on: 29/09/2011
 *      Author: diego
 */

using namespace std;
#include <stdlib.h>
#include <iostream>
#include <string>
#include <sstream>
#include <fstream>
#include "Lista.h"
#include "Nodo.h"
#include "IteradorLista.h"
#include "ElementoInexistenteException.h"
#include "NodoTrie.h"
#include "Trie.h"
#include "Constantes.h"
#include "IndexWriter.h"
#include "IteradorIndice.h"

#ifndef STOPWORDS_H_
#define STOPWORDS_H_

class Stopwords {
private:
	ifstream* stpw;
	//Lista<string>* stpw_list;
	Trie* stopwords;

	bool charValido(char c);
	void borrar_registro(super_reg* reg);
	void grabarStopwords();
public:
	Stopwords();
	bool isStopword(string word);
	void agregarStopword(string termino);
	void extraerStopwords();
	virtual ~Stopwords();
};

#endif /* STOPWORDS_H_ */
